package com.ldp.designpatterns.review.create.factory.simplefactory;

import com.ldp.designpatterns.review.create.factory.simplefactory.factory.PizzaFactory;
import com.ldp.designpatterns.review.create.factory.simplefactory.service.Pizza;

/**
 * @ClassName SimpleFactoryTest
 * @Description TODO
 * @Author lindipei
 * @Date 2023/10/20 10:59
 */
public class SimpleFactoryTest {
    public static void main(String[] args) {
        PizzaFactory factory = new PizzaFactory();
        Pizza chessPiza = factory.getPizza("chess");
        chessPiza.getPizza();

        Pizza pepperPiza = factory.getPizza("pepper");
        pepperPiza.getPizza();
    }
}
